gdk: use EGL_KHR_swap_buffers_with_damage
authorChristian Hergert <chergert@redhat.com>
Thu, 3 Mar 2022 06:59:23 +0000 (22:59 -0800)
committerChristian Hergert <chergert@redhat.com>
Thu, 3 Mar 2022 09:22:01 +0000 (01:22 -0800)
commit5316eb0c355f76a997f7ffc218bb26b9ae24e186
tree78d0a156e7fe14018cba8b88d2013dba89747084
parenteaf03532056899f06c33237dfebde18fd1aecc12
gdk: use EGL_KHR_swap_buffers_with_damage

It appears that NVIDIA does not implement EGL_EXT_swap_buffers_with_damage
on their EGL implementation, but does implement the KHR variant of it.
This checks for a suitable implementation and stores a pointer to the
compatible implementation within the GdkGLContextPrivate struct.
gdk/gdkdisplay.c
gdk/gdkdisplayprivate.h
gdk/gdkglcontext.c